package JavaDowork.pratice3;

import java.util.Scanner;

public class Q2 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入身高(cm):");
        int height = scanner.nextInt();
        System.out.print("请输入体重(kg):");
        int weight = scanner.nextInt();
        double standardWeight = (height - 100) * 0.9;
        if (weight > standardWeight + 5) {
            System.out.println("体重超重 " + (weight - standardWeight) + " kg,加强运动！");
        } else if (weight < standardWeight - 5) {
            System.out.println("体重不足 " + (standardWeight - weight) + " kg,加强营养！");
        } else {
            System.out.println("好,很有精神！");
        }
        scanner.close();
    }
}
